﻿@model MVCMobile1.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}
<section class="content">
<h2>Log On</h2>
<p>
    Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account.
</p>



@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm()) {
 
        <fieldset>
            <legend>Account Information</legend>
    
           
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName, new { required="required",placeHolder="User Name"})
                @Html.ValidationMessageFor(m => m.UserName)
          <br>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password, new { required="required", placeholder="Password"})
                @Html.ValidationMessageFor(m => m.Password)
            <br>
                @Html.CheckBoxFor(m => m.RememberMe, new { @class = "centered" })
                @Html.LabelFor(m => m.RememberMe)
                <br>
                <input type="submit" class="submit" value="Log On" />
          
        </fieldset>
   
}

</section>

@section scripts
{
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}